// app.js
require('./utils/leancloud-init')
import fly from './utils/request'
App({
  onLaunch() {
      //尝试提取本地存储数据
    try {
        var value = wx.getStorageSync('userInfo-2303')
        if (value) {
          // Do something with return value
          this.globalData.userInfo = value
        }
      } catch (e) {
        // Do something when catch error
        console.log('用户信息提取失败');
      }
  },
  globalData: {
    userInfo: null,
    myData:'123' //可读可写
  },
  fly
})
